
from db import Base, db


class User(Base):
    __tablename__ = "sys_user"
    __table_args__ = ({"comment": "用户"})
    id = db.Column(db.Integer, primary_key=True, comment="主键")
    userName = db.Column(db.String(32), name="user_name", unique=True, nullable=False, comment="用户名")
    realName = db.Column(db.String(32), name="real_name", unique=False, nullable=False, comment="姓名")
    password = db.Column(db.String(64), name="password", unique=False, nullable=False, comment="密码")
